/* Geometry preserved: original layout, card dimensions and typography retained. */
/* Astro-book / approved Celestial Relief direction, 2026-11-02.
   Unslop craft review: Damir Sokolovsky (@heydamir), CC BY 4.0.
   Scoped opt-in layer; preserve application data, React events and localization. */
html[data-astro-relief] { --green:#294b3e; --gold:#b29a60; --ink:#182e24; --muted:#626960; --border:#d8cdbc; background:#f2e9dc; color-scheme:light; }
html[data-astro-relief] body { background:#f2e9dc; color:var(--ink); }
html[data-astro-relief] body::before { content:""; position:absolute; inset:0 0 auto; height:66.6667vw; z-index:0; pointer-events:none; background:url('./Referal Program - background-desktop.png') center top / 100% auto no-repeat; mask-image:linear-gradient(#000 72%,transparent); }
html[data-astro-relief] #root { border-radius:0; background:transparent; box-shadow:none; }
html[data-astro-relief] :is(.ab-optics,.ab-optics-hero) { visibility:hidden!important; }
html[data-astro-relief] :is(header,.public-market-header,.account-header) { border-radius:0 0 12px 12px; background:#f8f1e7eb; box-shadow:0 4px 18px #352c1f08; }
html[data-astro-relief] .brand { color:#173c2b; }
html[data-astro-relief] .brand span { color:var(--gold); }
html[data-astro-relief] header nav :is(a,button) { color:#182e24; border-radius:8px; background:transparent; }
html[data-astro-relief] .public-market-header nav a[href*='role=expert'] { background:#153e2a; color:white; }
html[data-astro-relief][data-astro-relief] header .language-switcher-label { background:transparent; }
html[data-astro-relief][data-astro-relief] header .header-language select { background:transparent; }
html[data-astro-relief] .language-switcher-label { background:transparent; }
html[data-astro-relief] .header-language select { color:var(--ink); background:transparent; }
html[data-astro-relief] .intro h1 { color:#173c2b; }
html[data-astro-relief] .intro h1 em { color:inherit; }
html[data-astro-relief] .intro>p { color:#242a23; }
html[data-astro-relief] .language-bridge { color:#514222; }
html[data-astro-relief] .bridge-arrow { color:#96783a; }
html[data-astro-relief] .filters { border-radius:10px; background:#f8f0e5eb; box-shadow:0 8px 20px #4333210d; }
html[data-astro-relief] .filters label { color:#243b2c; }
html[data-astro-relief] .filters select { color:var(--ink); background:transparent; border-radius:4px; }
html[data-astro-relief] .expert { border-radius:0; background:transparent; box-shadow:none; }
html[data-astro-relief] .expert .avatar { border-radius:8px; background:#dfded2; }
html[data-astro-relief] .expert .country { color:#626960; }
html[data-astro-relief] .expert .specialty { color:#25362a; }
html[data-astro-relief] .expert .description { color:#485046; }
html[data-astro-relief] .expert-rating { color:#705b2c; }
html[data-astro-relief] .rate { color:#172c20; }
html[data-astro-relief] .availability { color:#56604f; }
html[data-astro-relief] .expert-specialties>div>span { border-radius:0; background:transparent; color:#4b5549; }
html[data-astro-relief] :is(button.primary,.primary,.ab-button) { background:#173e2b; color:#fff; border-radius:8px; }
html[data-astro-relief] :is(.panel,.profile-section,.profile-hero-action) { background:#fbf7f0f5; border-radius:12px; box-shadow:none; }
html[data-astro-relief][data-ab-page=quiet] body::before { opacity:.12; }
html[data-astro-relief] :is(.messages,.consultation,.account-overview) { background:#fbf8f2; }
@media(max-width:760px) {
 html[data-astro-relief] .ab-relief-menu { background:transparent; color:#294b3e; }
 html[data-astro-relief] .ab-relief-filters { border-radius:10px; color:#183c2b; background:#f8f0e5ed; box-shadow:0 8px 20px #4333210d; }
 html[data-astro-relief] body::before { background-image:url('./Referal Program - background-mobile.png?v=20261102-2'); background-size:100% auto; height:150vw; }
 html[data-astro-relief] :is(header,.public-market-header,.account-header) { border-radius:0; }
 html[data-astro-relief] .expert .avatar { border-radius:8px; }
}
@media(forced-colors:active) { html[data-astro-relief] body::before { display:none; } }

/* Center the catalog introduction without changing the artwork. */
html[data-astro-relief] .intro[data-interface-native]{text-align:center}
html[data-astro-relief] .intro[data-interface-native] .language-bridge{justify-content:center}
html[data-astro-relief] .intro[data-interface-native] > :is(h1,p,.language-bridge){margin-inline:auto}
html[data-astro-relief][data-astro-optics] .intro[data-interface-native]{padding-inline:0}

@media (vertical-viewport-segments: 2) { .filters label.checkbox { transform: translateY(-18px); } }

/* Align the navigation panel with the catalog and hide the outer frame. */
html[data-astro-relief] #root{border-color:transparent}
@media(min-width:701px) and (max-width:900px){html[data-astro-relief] .public-market-header{width:calc(100% - 48px);margin-inline:auto}}
@media(min-width:901px){html[data-astro-relief] .public-market-header{width:min(1208px,calc(100% - 72px));margin-inline:auto}}

/* Reveal the mobile artwork while keeping the header readable. */
@media(max-width:760px){html[data-astro-relief] .public-market-header{background:linear-gradient(90deg,rgba(248,241,231,.62),rgba(248,241,231,.32) 55%,rgba(248,241,231,.32))}}

/* Center and clarify mobile navigation. */
@media (max-width:600px){
 html[data-astro-relief] .public-market-header nav{justify-content:center}
 html[data-astro-relief] .public-market-header nav a{color:#102f22;text-shadow:0 0 .4px #102f22,0 1px 2px rgba(255,251,244,.95)}
}

/* Remove the hidden illustration from the mobile layout. */
@media(max-width:640px){html[data-astro-relief] .intro .ab-optics-hero{display:none!important}}

/* Keep the public header transparent. */
html[data-astro-relief] .public-market-header{background:transparent!important;box-shadow:none!important}

/* Keep the header geometry while hiding its bottom divider. */
html[data-astro-relief] .public-market-header{border-bottom-color:transparent!important}

/* Compact mobile language control; keep its original layout space intact. */
@media(max-width:600px){
 html[data-astro-relief] .public-market-header .header-language{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
 html[data-astro-relief] .public-market-header .language-switcher-label{min-height:36px}
 html[data-astro-relief] .public-market-header .language-switcher-caption{visibility:hidden}
 html[data-astro-relief] .public-market-header .header-language select{position:absolute;top:8px;right:12px;width:44px!important;min-width:44px!important;height:44px;min-height:44px;padding:0!important;appearance:none;-webkit-appearance:none;color:transparent!important;border:1px solid #a7b4a8;border-radius:8px;background:#fbf7f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173c2b' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.4 3 14.6 0 18M12 3c-3 3.4-3 14.6 0 18M5 7h14M5 17h14'/%3E%3C/svg%3E") center/24px 24px no-repeat!important}
 html[data-astro-relief] .public-market-header .header-language select option{color:#182e24}
}
